package net.borlis.processor.impl.object;

import net.borlis.processor.api.object.UserObject;
import net.borlis.processor.dao.entity.UserEntity;

import java.io.Serializable;
import java.math.BigInteger;

/**
 * Created by borlis on 24.12.2014.
 */
public class UserObjectImpl implements UserObject, Serializable {

    private static final long serialVersionUID = -7788619177798333712L;

    private BigInteger id;
    private String name;
    private String companyName;


    public UserObjectImpl(UserEntity userEntity) {
        this.id = userEntity.getId();
        this.name = userEntity.getName() + " " + userEntity.getSurname();
        this.companyName = userEntity.getCompany();
    }

    public BigInteger getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getCompanyName() {
        return companyName;
    }
}
